﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JiaBao.Core.Plugins
{
    public class BasePlugin : IPlugin
    {
        #region 属性

        /// <summary>
        /// 插件说明文件
        /// </summary>
        public PluginDescriptor PluginDescriptor { get; set; }

        #endregion


        /// <summary>
        /// 安装插件
        /// </summary>
        public void Install()
        {
            PluginManager.MarkPluginAsInstalled(PluginDescriptor.SystemName);
        }

        /// <summary>
        /// 卸载插件
        /// </summary>
        public void Uninstall()
        {
            PluginManager.MarkPluginAsUninstalled(PluginDescriptor.SystemName);
        }
    }
}
